package com.jiyun.testlist.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiyun.model.Team;
import com.jiyun.testlist.mapper.TeamMapper;
import com.jiyun.testlist.service.TeamService;
import com.jiyun.vo.TeamVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeamServiceImpl extends ServiceImpl<TeamMapper, Team> implements TeamService {

    @Autowired
    TeamMapper teamMapper;


    @Override
    public Page<TeamVo> findPage(Integer pageNum, Integer pageSize, TeamVo teamVo) {
        Page<TeamVo> teamVoPage = new Page<>(pageNum, pageSize);
        teamMapper.findPage(teamVoPage,teamVo);
        return teamVoPage;
    }
}
